package com.goodwill.androidtest;


import androidx.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import static com.goodwill.androidtest.TimePickerType.TYPE_ALL;
import static com.goodwill.androidtest.TimePickerType.TYPE_DATE;
import static com.goodwill.androidtest.TimePickerType.TYPE_TIME;

/**
 * Author: Created by guoxiaojun on 2019/10/16-10:09
 * Description: 日期选择控件的显示类型
 */
@IntDef({TYPE_DATE, TYPE_TIME, TYPE_ALL})
@Retention(RetentionPolicy.SOURCE)
public @interface TimePickerType {

    /**
     * 格式为: yyyy-MM-dd
     */
    public static final int TYPE_DATE = 1;
    /**
     * 格式为: HH:mm:ss
     */
    public static final int TYPE_TIME = 2;
    /**
     * yyyy-MM-dd HH:mm
     */
    public static final int TYPE_ALL = 3;
}
